<?php

namespace app\common\model;

use app\common\controller\Helper;
use think\Model;

class TieBaCollect extends Model
{
    use Helper;

    protected $table = 'tie_ba_collect';

    // 点赞
    const TYPE_PRAISE = 1;
    // 收藏
    const TYPE_COLLECT = 2;

    public static function attributes($attribute, $key = null)
    {
        $list = [
            'type' => [
                self::TYPE_PRAISE => '点赞',
                self::TYPE_COLLECT => '收藏',
            ],
        ];
        return self::attributeReturn($list, $attribute, $key);
    }
}